package com.xinghou.platform.dao.main;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.xinghou.platform.model.main.City;

public interface CityDAO {
	public City getNameByCode(String code) throws DataAccessException;
	
	/**
	 * 模糊匹配
	 * @param fullName
	 * @return
	 * @throws DataAccessException
	 */
	public List<City> queryCityListByFullName(String fullName) throws DataAccessException;
	
	public int saveCity(City city)throws DataAccessException;
	
	public List<City> queryCityListByCityid(String cityid)throws DataAccessException;
	
	public List<City> queryAllCity() throws DataAccessException;
}
